package com.hjy.exception;

import com.hjy.common.ExceptionStatusCode;

public class ApiException extends RuntimeException {
    private int statusCode;

    public ApiException(ExceptionStatusCode statusCode, String message) {
        super(message);
        this.statusCode = statusCode.getCode();
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }
}
